package com.ruoyi.web.controller.post.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 帖子推荐历史表 post_recommendation_history
 *
 * @author thunderhub
 */
public class PostRecommendationHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 历史ID */
    @Excel(name = "历史ID", cellType = ColumnType.NUMERIC)
    private Long historyId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 帖子ID */
    @Excel(name = "帖子ID")
    private Long postId;

    /** 访问时间 */
    @Excel(name = "访问时间")
    private String visitTime;

    /** 帖子标题（冗余字段，便于查询） */
    @Excel(name = "帖子标题")
    private String postTitle;

    /** 访问类型（0=查看详情 1=推荐点击） */
    @Excel(name = "访问类型", readConverterExp = "0=查看详情,1=推荐点击")
    private String visitType;

    public Long getHistoryId()
    {
        return historyId;
    }

    public void setHistoryId(Long historyId)
    {
        this.historyId = historyId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getPostId()
    {
        return postId;
    }

    public void setPostId(Long postId)
    {
        this.postId = postId;
    }

    public String getVisitTime()
    {
        return visitTime;
    }

    public void setVisitTime(String visitTime)
    {
        this.visitTime = visitTime;
    }

    public String getPostTitle()
    {
        return postTitle;
    }

    public void setPostTitle(String postTitle)
    {
        this.postTitle = postTitle;
    }

    public String getVisitType()
    {
        return visitType;
    }

    public void setVisitType(String visitType)
    {
        this.visitType = visitType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("historyId", getHistoryId())
                .append("userId", getUserId())
                .append("postId", getPostId())
                .append("visitTime", getVisitTime())
                .append("postTitle", getPostTitle())
                .append("visitType", getVisitType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}